<?php

class Media extends Eloquent{
	protected $table = 'media';
	protected $primaryKey = 'id';

	public function content(){
		return $this->belongsTo('Content', 'id');
	}

	public function album(){
		return $this->belongsTo('Album', 'album_id');
	}

	public function uploadTo(){
		return $this->belongsTo('ID', 'upload_to');
	}
}